<%@page import="java.util.List"%>
<%@ include file="/common/taglibs.jsp"%>
<script>
$('.andl').click(function() {
	loadDiv('content', $(this).attr('url'));
});
</script>
<table class="tablesorter" border="0" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<td class="grid-header" width="110px">Module</td>
						<td class="grid-header" width="130px">Type</td>
						<td class="grid-header"  width="100px">Date</td>
						<td class="grid-header" align="center">Message</td>
					</tr>
				</tbody>
			</table>
			<div
				style="overflow: auto; height: 60px; border-left: 1px gray solid; border-bottom: 1px gray solid; padding: 0px; margin: 0px">
				<table class="tablesorter" border="0" cellpadding="0"
					cellspacing="0">
			     <tbody>
				  <c:set var="counter" scope="page" value="${0}"></c:set>
                    <c:if test="${not empty allowedUiElements['Actionable Alerts']}">
    			       <c:forEach items="${ActionableAlertList}" var="alertMessage" varStatus="s1" >
                          <c:if test="${not empty allowedUiElements['Actionable Alerts'][alertMessage.actionableAlert.type]}">
    						<c:choose>
    							<c:when test="${s1.index%2==0}">
    								<tr class="alernate-row">
    							</c:when>
    							<c:otherwise>
    								<tr>
    							</c:otherwise>
    						</c:choose>
        						<td width="110px">${alertMessage.actionableAlert.module}</td>
        						<td width="130px">${alertMessage.actionableAlert.type}</td>
        						<td width="100px"><fmt:formatDate pattern="MM-dd-yyyy" value="${alertMessage.date}" /></td>
        						<td><a href="javascript://" url="${alertMessage.url}" class="andl">${alertMessage.message}</a></td>
        						<c:set var="counter" scope="page" value="${counter+1}"></c:set>
      						</tr>
                          </c:if>
                        </c:forEach>
                    </c:if>
		          </tbody>
				</table>
			</div>
			<div class="cipe-pagination-links">
				<a align="right"><font size="1" color="red">Total number
						of Actionable Alerts=<c:out value="${counter}" ></c:out></font>
				</a>
			</div>